//
//  TaskCollectionViewCell.m
//  联付商圈
//
//  Created by apple on 2017/10/30.
//  Copyright © 2017年 lianfu. All rights reserved.
//

#import "TaskCollectionViewCell.h"

@implementation TaskCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.label = [[UILabel alloc] init];
        self.label.textAlignment = 1;
        self.label.font = [UIFont systemFontOfSize:15 * FONTSIZE];
        [self.contentView addSubview:_label];
        [self.label mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView.mas_top).offset(14 * FONTSIZE);
            make.left.equalTo(self.contentView.mas_left).offset(0);
            make.right.equalTo(self.contentView.mas_right).offset(0);
            make.height.mas_equalTo(15 * FONTSIZE);
        }];
        
        self.imageView = [[UIImageView alloc] init];
        [self.contentView addSubview:_imageView];
        [self.imageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.label.mas_bottom).offset(12 * FONTSIZE);
            make.left.equalTo(self.contentView.mas_left).offset((frame.size.width - 34 * FONTSIZE) / 2);
            make.width.mas_equalTo(34 * FONTSIZE);
            make.height.mas_equalTo(34 * FONTSIZE);
        }];
        
        
    }
    return self;
}
@end
